/*!
 * Gantt chart display of sample program
 * Copyright (c) 2016 Cybozu
 *
 * Licensed under the MIT License
*/

#ganttchart-plugin {
  min-height: 200px;
}

#ganttchart-plugin.loading {
  position: relative;
}

#ganttchart-plugin.loading:before {
  background: url("");
  content: "";
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: spin .8s linear infinite;
  -moz-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#ganttchart-plugin.loading > * {
  display: none;
}

#ganttchart-plugin .form-submit {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

#ganttchart-plugin .form-submit.submit-bottom {
  padding-top: 20px;
  border-bottom: 0;
  border-top: 1px solid #eee;
}

#ganttchart-plugin .form-submit > button {
  margin-right: 10px;
}

#ganttchart-plugin .ganttchart-plugin-form {
  overflow: auto;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-row:first-child {
  margin-top: 20px;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-field-description {
  color: #8f8f8f;
  font-size: 90%;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-require {
  color: #e74c3c;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-label {
  font-size: 14px;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-input-text,
#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-select {
  height: 40px;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-select > select {
  height: 40px;
  line-height: 40px;
}

#ganttchart-plugin .ganttchart-plugin-form .kintoneplugin-input-text {
  margin: 5px;
}

#ganttchart-plugin table {
  min-width: 500px;
  margin-top: 10px;
}

#ganttchart-plugin table thead {
  line-height: 2.5;
  border: 2px solid #3498db;
  background: #3498db;
}

#ganttchart-plugin table thead th {
  padding-left: 10px;
}

#ganttchart-plugin table thead th > label {
  color: white;
}

#ganttchart-plugin table tbody {
  border: 1px solid #e3e7e8;
  box-shadow: 1px 1px 1px #fff inset;
}

#ganttchart-plugin table td.column-add-more > a {
  cursor: pointer;
}

#ganttchart-plugin input:checked + label {
  font-weight: bold;
}

#ganttchart-plugin input[type="radio"] + label,
#ganttchart-plugin select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
}

#ganttchart-plugin .kintoneplugin-input-radio-item input[type="radio"] + label {
  padding-left: 30px;
  margin: 0;
}

#ganttchart-plugin .kintoneplugin-input-radio-item input[type="radio"] + label:before {
  left: 0;
}

#ganttchart-plugin .kintoneplugin-input-radio-item input[type="radio"] + label:after {
  left: 4px;
}
